<?php

return [
    'class' => 'yii\web\UrlManager',

    // 美化Url,默认不启用。但实际使用中，特别是产品环境，一般都会启用。
    'enablePrettyUrl' => true,

    // 是否在URL中显示入口脚本。是对美化功能的进一步补充。
    'showScriptName' => false,

    // 指定续接在URL后面的一个后缀，如 .html 之类的。仅在 enablePrettyUrl 启用时有效。
    'suffix' => '',

    'rules' => [
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => [
                /**
                 * 默认登录测试控制器(Post)
                 * http://当前域名/api/v1/site/login
                 */
                'v1/default',// 默认测试入口
                'v1/site',
                'v1/mini-program',
                'v1/pay',
                'v1/member/auth',
            ],
            'pluralize' => false,// 是否启用复数形式，注意index的复数indices，开启后不直观
            'extraPatterns' => [
                'POST login' => 'login',// 登录获取token
                'POST logout' => 'logout',// 退出登录
                'POST refresh' => 'refresh',// 重置token
                'POST up-pwd' => 'up-pwd',// 重置密码

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ]
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/rbac/role'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 角色列表
                'GET info' => 'info',// 角色详情
                'POST create' => 'create-role',// 新增角色
                'POST update' => 'update-role',// 编辑角色
                'POST delete' => 'delete-role',// 删除角色
                'POST update-status' => 'update-role-status',// 编辑角色状态

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/rbac/menu'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 菜单列表
                'GET info' => 'info',// 菜单详情
                'POST create' => 'create-menu',// 新增菜单
                'POST update' => 'update-menu',// 编辑菜单
                'POST delete' => 'delete-menu',// 删除菜单
                'POST update-status' => 'update-menu-status',// 编辑菜单状态

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/rbac/action'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 动作列表
                'GET info' => 'info',// 动作详情
                'POST create' => 'create-action',// 新增动作
                'POST update' => 'update-action',// 编辑动作
                'POST delete' => 'delete-action',// 删除动作

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/rbac/department'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 部门列表
                'GET info' => 'info',// 部门详情
                'POST create' => 'create-department',// 新建部门
                'POST update' => 'update-department',// 编辑部门
                'POST update-status' => 'update-department-status',// 编辑部门状态

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ]
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/rbac/module'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 模块列表
                'GET info' => 'info',// 模块详情
                'POST create' => 'create-module',// 新增模块
                'POST update' => 'update-module',// 编辑模块
                'POST delete' => 'delete-module',// 删除模块

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/system/base/project'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index-project' => 'index-project',   // 项目列表
                'GET project-list' => 'project-list', // 项目筛选框列表
                'POST create-project' => 'create-project',   // 项目新建
                'POST update-project' => 'update-project',   // 项目编辑
                'POST delete-project' => 'delete-project',   // 项目删除
                'POST change-status-project' => 'change-status-project',   // 项目状态改变

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/system/base/profession'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index-project' => 'index-profession',   // 岗位列表
                'POST create-project' => 'create-profession',   // 岗位新建
                'POST update-project' => 'update-profession',   // 岗位编辑
                'POST delete-project' => 'delete-profession',   // 岗位删除
                'POST change-status-project' => 'change-status-profession',   // 岗位状态改变

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/system/base/patient-diseases'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index-patient-diseases' => 'index-patient-diseases',   // 病种列表
                'POST create-patient-diseases' => 'create-patient-diseases',   // 病种新建
                'POST update-patient-diseases' => 'update-patient-diseases',   // 病种编辑
                'POST delete-patient-diseases' => 'delete-patient-diseases',   // 病种删除
                'POST true-delete' => 'true-delete-patient-diseases',   // 病种删除
                'POST change-status-patient-diseases' => 'change-status-patient-diseases',   // 病种状态改变

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/clinic/index'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 诊室列表
                'GET info' => 'info',// 诊室详情
                'POST create' => 'create-clinic',// 新增诊室
                'POST update' => 'update-clinic',// 编辑诊室
                'POST delete' => 'delete-clinic',// 删除诊室
                'POST update-status' => 'update-clinic-status',// 编辑诊室状态

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/clinic/doctor'],
            'pluralize' => false,
            'extraPatterns' => [
                'POST create' => 'create-doctor',// 新增医生
                'POST update' => 'update-doctor',// 编辑医生

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/clinic/project'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 治疗项目列表
                'GET info' => 'info',// 治疗项目详情
                'POST create' => 'create-project',// 新增治疗项目
                'POST update' => 'update-project',// 编辑治疗项目
                'POST delete' => 'delete-project',// 删除治疗项目
                'POST update-status' => 'update-project-status',// 编辑治疗项目状态

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/clinic/treatment-room'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 治疗室列表
                'GET info' => 'info',// 治疗室详情
                'POST create' => 'create-treatment-room',// 新增治疗室
                'POST update' => 'update-treatment-room',// 编辑治疗室
                'POST delete' => 'delete-treatment-room',// 删除治疗室
                'POST update-status' => 'update-treatment-room-status',// 编辑治疗室状态
                'POST bind-project' => 'bind-project',// 绑定治疗项目

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/system/base/body-parts'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-position',// 部位列表
                'GET father-list' => 'father-list', // 父类列表
                'POST create' => 'create-position',// 新增部位
                'POST update' => 'update-position',// 编辑部位
                'POST delete' => 'delete-position',// 删除部位
                'POST true-delete' => 'true-delete',// 真删除部位

                'POST update-status' => 'update-status-position',// 编辑部位

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/member'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET permissions' => 'permissions',// 员工列表
                'GET index' => 'index-member',// 员工列表
                'GET role-list' => 'role-list', // 员工项目关联表
                'GET info' => 'info', // 员工信息
                'POST create' => 'create-member',// 新增治疗室
                'POST update' => 'update-member',// 编辑治疗室
                'POST update-status' => 'update-status-member',// 编辑治疗室状态
                'POST update-info' => 'update-info',// 编辑信息

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/patient/index'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET seas-list' => 'seas-list',// 公海列表
                'GET patient-list' => 'patient-list',// 患者列表【客服】
                'GET patient-assistant-list' => 'patient-assistant-list',// 患者列表【医助】
                'GET doctor-guide-list' => 'doctor-guide-list', // 导医列表
                'GET doctor-guide-info' => 'doctor-guide-info', // 导医详情按钮
                'GET info' => 'info',// 患者详情
                'GET edit-info' => 'edit-info',// 患者编辑详情
                'GET allot-patient-list' => 'allot-patient-list',// 分配患者列表
                'GET allot-condition-list' => 'allot-condition-list',// 分配患者筛选条件列表
                'GET foot-print-list' => 'foot-print-list',// 用户足迹
                'GET callback-list' => 'callback-list',// 回访列表
                'GET medical-list' => 'medical-list',// 病历辅助列表
                'GET medical-info' => 'medical-info',// 病历信息
                'GET treatment-list' => 'treatment-list',// 治疗信息列表
                'GET treatment-info' => 'treatment-info',// 治疗信息详情
                'GET consumption-list' => 'consumption-list',// 消费信息列表
                'GET consumption-info' => 'consumption-info',// 消费信息详情
                'GET clinic-img-list' => 'clinic-img-list',// 治疗图片
                'GET operate-log-list' => 'operate-log-list',// 操作日志
                'POST update' => 'update-patient',// 编辑患者
                'POST update-remark' => 'update-patient-remark',// 编辑患者备注
                'POST allot-patient' => 'allot-patient',// 分配患者
                'POST allot-batch-patient' => 'allot-batch-patient',// 批量分配患者
                'POST edit-medical' => 'edit-medical',// 编辑患者病历
                'POST create-medical-auxiliary' => 'create-medical-auxiliary',// 新增病历辅助内容
                'POST edit-clinic-img' => 'edit-clinic-img',// 编辑图片部位
                'POST delete-clinic-img' => 'delete-clinic-img',// 删除治疗图片
                'POST update-anti' => 'update-anti',// 编辑抗复发状态
                'POST update-anti-year' => 'update-anti-year',// 编辑抗复发年限
                'GET tags-list' => 'tags-list',// 患者标签列表
                'POST tags-edit' => 'patient-tags-edit',// 患者标签列表
                'POST update-next-revisiting-time' => 'update-next-revisiting-time',// 更新患者下次回访时间

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/rbac/user'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-user',// 员工列表
                'GET view' => 'view-user',// 员工详情
                'POST create' => 'create-user',// 新增治疗室
                'POST update' => 'update-user',// 编辑治疗室

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/marketing/callback-status'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-callback-status',// 回访状态列表
                'POST create' => 'create-callback-status',// 新增回访状态
                'POST update' => 'update-callback-status',// 编辑回访状态
                'POST update-status' => 'update-callback-status-about-status',// 编辑回访状态的状态
                'POST delete' => 'delete-callback-status',// 删除回访状态

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/marketing/tags'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-tags',// 标签列表
                'POST create' => 'create-tags',// 新增标签
                'POST update' => 'update-tags',// 编辑标签
                'POST update-status' => 'update-tags-status',// 编辑标签的状态
                'POST delete' => 'delete-tags',// 删除标签

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/marketing/source-channel'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-source-channel',// 来源渠道列表
                'POST create' => 'create-source-channel',// 新增来源渠道
                'POST update' => 'update-source-channel',// 编辑来源渠道
                'POST update-status' => 'update-source-channel-status',// 编辑来源渠道的状态
                'POST delete' => 'delete-source-channel',// 删除来源渠道
                'POST true-delete' => 'true-delete-source-channel',// 删除来源渠道
                'GET get-parent-source-channel' => 'get-parent-source-channel',// 获取来源渠道

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/marketing/outpatient-type'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-outpatient-type',// 就诊类型列表
                'POST create' => 'create-outpatient-type',// 新增就诊类型
                'POST update' => 'update-outpatient-type',// 编辑就诊类型
                'POST update-status' => 'update-outpatient-type-status',// 编辑就诊类型的状态
                'POST delete' => 'delete-outpatient-type',// 删除就诊类型

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/marketing/effect-type'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-effect-type',// 效果类型列表
                'POST create' => 'create-effect-type',// 新增效果类型
                'POST update' => 'update-effect-type',// 编辑效果类型
                'POST update-status' => 'update-effect-type-status',// 编辑效果类型的状态
                'POST delete' => 'delete-effect-type',// 删除效果类型
                'POST true-delete' => 'true-delete-effect-type', // 真删除,清空对应的数据

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/common/config'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-config',// 全局配置列表
                'POST update' => 'update-config',// 编辑全局配置

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/common/provinces'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 搜索城市列表

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/marketing/clinic-assess'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-clinic-assess',// 诊疗评估列表
                'POST create' => 'create-clinic-assess',// 新增诊疗评估
                'POST update' => 'update-clinic-assess',// 编辑诊疗评估
                'POST update-status' => 'update-clinic-assess-status',// 编辑诊疗评估的状态
                'POST delete' => 'delete-clinic-assess',// 删除诊疗评估

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/marketing/risk-type'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-risk-type',// 风控类型列表
                'POST create' => 'create-risk-type',// 新增风控类型
                'POST update' => 'update-risk-type',// 编辑风控类型
                'POST update-status' => 'update-risk-type-status',// 编辑风控类型的状态
                'POST delete' => 'delete-risk-type',// 删除风控类型
                'POST true-delete' => 'true-delete-risk-type', // 真删除 风控类型,清空关联信息

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/patient/patient-callback'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET re-follow' => 're-follow-list',// 待回访列表
                'GET follow-list' => 'follow-list',// 待回访列表
                'POST follow' => 'to-follow',// 回访
                'GET un-follow' => 'un-follow',// 过期未回访
                'GET report-list' => 'report-list',// 回访报表
                'GET report-member-list' => 'report-member-list',// 回访人患者列表

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/work/todo'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-todo',// 待办列表
                'GET un-improved' => 'unimproved',// 待完善列表
                'POST improved' => 'do-improved',// 完善信息
                'GET clinic-list' => 'clinic-list', // 护士待办-搜索待添加治疗项目
                'POST add-clinic-wait' => 'add-clinic-wait', // 护士待办-添加待治疗
                'GET wait-list' => 'wait-list', // 护士待办-待录入列表
                'GET entry-list' => 'entry-list', // 护士待办-已录入列表
                'POST revocation-treatment' => 'revocation-treatment', // 已录入撤销
                'GET new-treatment' => 'new-treatment', // 护士待办-上次治疗信息

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/work/report'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET view-show' => 'over-view',// 我的报表概览
                'GET callback-report' => 'callback-report',// 回访报表
                'GET patient-report' => 'patient-report',// 患者报表

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/work/task'],
            'pluralize' => false,
            'extraPatterns' => [
                'POST create' => 'create-task', // 新增任务
                'POST update' => 'update-task', // 编辑任务
                'POST delete' => 'delete-task', // 删除任务

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/clinic/treatment-manage'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-list',// 治疗列表
                'GET report' => 'report', // 治疗统计
                'GET clinic-project' => 'clinic-project', // 左侧诊室项目列表
                'GET patient-clinic-list' => 'patient-clinic-list', // 录入治疗弹窗
                'GET view' => 'view-treatment', // 个人治疗列表
                'GET treatment-detail' => 'treatment-detail', // 治疗详情
                'POST add-treatment' => 'add-treatment', // 添加治疗信息
                'POST update-treatment' => 'update-treatment', // 修改治疗信息
                'GET operator-List' => 'operator-List', // 操作员列表

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/oss'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET upload' => 'upload',// 治疗列表

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/system/base/bc-body-parts'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-bc-body-parts',// 半舱311治疗部位列表
                'POST create' => 'create-bc-body-parts',// 新增半舱311治疗部位
                'POST update' => 'update-bc-body-parts',// 编辑半舱311治疗部位
                'POST update-status' => 'update-bc-body-parts-status',// 编辑半舱311治疗部位的状态
                'POST delete' => 'delete-bc-body-parts',// 删除半舱311治疗部位
                'POST true-delete' => 'true-delete',// 真删除半舱311治疗部位

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/system/base/bb-body-parts'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 半舱311治疗部位列表
                'POST create' => 'create-bb-body-parts',// 新增半舱311治疗部位
                'POST update' => 'update-bb-body-parts',// 编辑半舱311治疗部位
                'POST update-status' => 'update-bb-body-parts-status',// 编辑半舱311治疗部位的状态
                'POST true-delete' => 'true-delete',// 真删除白白管家部位
                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/system/business'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 业务设置列表
                'GET info' => 'info',// 业务设置详情
                'POST update' => 'update-kefu',// 业务设置详情

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/dingtalk'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET bind' => 'bind',// 绑定钉钉
                'GET unbind' => 'unbind', // 解绑钉钉
                'GET fast-login' => 'fast-login',// 快速登录

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/clinic/treatment-patient'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-list',// 治疗-患者列表
                'GET treatment-list' => 'treatment-list',// 治疗-患者治疗记录
                'GET treatment-detail' => 'treatment-detail',// 治疗-治疗详情

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/statistics/callback-report'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 治疗-患者列表
                'GET report-list-info' => 'report-patient-list',// 治疗-患者列表

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/rbac/module'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET index' => 'index-module',// 模块列表
                'POST create' => 'create-module',// 模块新增
                'POST update' => 'update-module',// 模块更新

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/statistics/follow'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET list' => 'list',// 跟进列表
                'GET select-info' => 'select-info',// 获取下拉列表

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/statistics/complex-report'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET treat-cycle-list' => 'treat-cycle-list',// 科室病人年度在诊周期病人人数汇总表
                'GET month-num-list' => 'month-num-list',// 科室病人月就诊次数人数汇总表
                'GET referral-comprise' => 'referral-comprise',// 复诊构成表

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/common/export'],
            'pluralize' => false,
            'extraPatterns' => [
                'GET info' => 'mudle-info',// 模块列表以及导出的字段列表
                'GET select' => 'show-select',// 获取筛选列表
                'POST export' => 'run-export',// 获取筛选列表
                'GET export-log' => 'export-log',// 获取筛选列表

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],

        // ===========================================================
        //                              APP治疗室
        // ===========================================================
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => [
                /**
                 * 默认登录测试控制器(Post)
                 * http://当前域名/api/v1_clinic/site/login
                 */
                'v1_clinic/site',
            ],
            'pluralize' => false,// 是否启用复数形式，注意index的复数indices，开启后不直观
            'extraPatterns' => [
                'POST login' => 'login',// 登录获取token

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ]
        ],
        [
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1_clinic/clinic-treatment-room'],
            'pluralize' => false,
            'extraPatterns' => [
                'POST index' => 'index-treatment-room',// 治疗室列表
                'POST treat-project-list' => 'get-treatment-room-project',// 治疗室治疗项目列表
                'POST get-list' => 'get-list',// 搜索治疗列表
                'POST get-treat-detail' => 'get-treat-detail',// 已治疗列表
                'POST get-patient-last-treat' => 'get-patient-last-treat',// 患者最后一次治疗信息
                'POST have-treat-patient-list' => 'have-treat-patient-list',// 已就诊列表
                'POST have-treat-patient-detail' => 'have-treat-patient-detail',// 治疗详情
                'POST start-treat' => 'start-treat',// 开始治疗

                'OPTIONS <action:.*>' => 'options',// 预请求重写
            ],
        ],
    ]
];
